package com.example.Yh_demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("Yh_demo")
public class HelloController {
    @GetMapping("/hello")
    public String helloWorld(){
        return "hello Spring Boot!";
    }
    @GetMapping("/get")
    public String getMethod(){
        return "这是查询操作！";
    }
    @PutMapping("/put")
    public String putWorld(){
        return "这是更新操作！";
    }
    @PostMapping("/post")
    public String postWorld(){
        return "这是增加操作！";
    }
    @DeleteMapping("/delete")
    public String deleteWorld(){
        return "这是删除操作！";
    }
}